{template 'common/header'}
<ul class="nav nav-tabs">
	<li><a href="{php echo create_url('site/module/Message', array('name'=>'we7car','op'=>'set','weid'=>$weid));}">意见回馈设置</a></li>	
	<li class="active"><a href="{php echo create_url('site/module/Message', array('name'=>'we7car','weid'=>$weid));}">意见回馈列表</a></li>	
</ul>
	<div class="main">
		<div class="stat">
			<div class="stat-div">
				<div class="navbar navbar-static-top">
					<div class="navbar-inner">
						<span class="brand">审核内容</span>
						<div class="pull-left">
							<ul class="nav">
								<li {if $_GPC['isshow'] == 0} class="active"{/if}><a href="{php echo create_url('site/module', array('do' => 'Message','op' => 'list', 'name' => 'we7car', 'weid' => $weid, 'isshow' => 0))}">待审核</a></li>
								<li {if $_GPC['isshow'] == 1} class="active"{/if}><a href="{php echo create_url('site/module', array('do' => 'Message','op' => 'list', 'name' => 'we7car', 'weid' => $weid, 'isshow' => 1))}">已审核</a></li>
							</ul>
						</div>
					</div>
				</div>
				<div class="sub-item" id="table-list">
					<h4 class="sub-title">详细数据</h4>
					<form action="" method="post" onsubmit="">
					<div class="sub-content">
						<table class="table table-hover">
							<thead class="navbar-inner">
								<tr>
									<th style="width:40px;" class="row-first">选择</th>
									<th style="width:100px;">用户<i></i></th>
									<th class="row-hover">消息<i></i></th>
									<th style="width:100px;">时间<i></i></th>
									<th style="width:110px;"></th>
								</tr>
							</thead>
							<tbody>
								{loop $list $row}
								<tr>
									<td class="row-first"><input type="checkbox" name="select[]" value="{$row['id']}" /></td>
									<td class="row-hover">
										<div class="mainContent">
											<div class="nickname">{$row['nickname']}</div>
										</div>
									</td>
									<td>{$row[info]}</td>
									<td style="font-size:12px; color:#666;">
										<div style="margin-bottom:10px;">{php echo date('Y-m-d', $row[create_time]);}</div>
										<div>{php echo date('h:i:s', $row[create_time]);}</div>
									</td>
									<td>
										 &nbsp;
									</td>
								</tr>
								{/loop}
							</tbody>
						</table>
						<table class="table">
							<tr>
								<td style="width:40px;" class="row-first"><input type="checkbox" onclick="selectall(this, 'select');" /></td>
								<td colspan="4">
									{if $_GPC['isshow'] == 0} <input type="submit" name="verify" value="审核" class="btn btn-primary" />{/if}
									<input type="submit" name="delete" value="删除" class="btn btn-primary" />
									<input type="hidden" name="token" value="{$_W['token']}" />
								</td>
							</tr>
						</table>
					</div>
					</form>
					{$pager}
				</div>
			</div>
		</div>
	</div>

<script>
$(function() {
	//详细数据相关操作
	var tdIndex;
	$("#table-list thead").delegate("th", "mouseover", function(){
		if($(this).find("i").hasClass("")) {
			$("#table-list thead th").each(function() {
				if($(this).find("i").hasClass("icon-sort")) $(this).find("i").attr("class", "");
			});
			$("#table-list thead th").eq($(this).index()).find("i").addClass("icon-sort");
		}
	});
	$("#table-list thead th").click(function() {
		if($(this).find("i").length>0) {
			var a = $(this).find("i");
			if(a.hasClass("icon-sort") || a.hasClass("icon-caret-up")) { //递减排序
				/*
					数据处理代码位置
				*/
				$("#table-list thead th i").attr("class", "");
				a.addClass("icon-caret-down");
			} else if(a.hasClass("icon-caret-down")) { //递增排序
				/*
					数据处理代码位置
				*/
				$("#table-list thead th i").attr("class", "");
				a.addClass("icon-caret-up");
			}
			$("#table-list thead th,#table-list tbody:eq(0) td").removeClass("row-hover");
			$(this).addClass("row-hover");
			tdIndex = $(this).index();
			$("#table-list tbody:eq(0) tr").each(function() {
				$(this).find("td").eq(tdIndex).addClass("row-hover");
			});
		}
	});
});
</script>
{template 'common/footer'}